package com.care.wardmate.remote;

import com.care.common.core.domain.Result;
import com.care.wardmate.common.domain.Review;
import com.care.wardmate.remote.factory.ReviewRemoteServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "ReviewRemoteService",name = "care-wardmate",fallbackFactory = ReviewRemoteServiceFallbackFactory.class)
public interface ReviewRemoteService {
    @GetMapping("selectReviewById/{articleId}")
    public Result<List<Review>> selectReviewById(@PathVariable("articleId") Integer articleId);
}
